using System;
using System.Collections;

namespace PMG.model
{
	#region EVENTACCOUNT

	/// <summary>
	/// EVENTACCOUNT object for NHibernate mapped table 'EVENTACCOUNT'.
	/// </summary>
	[Serializable]
	public class EVENTACCOUNT
	{
		#region Member Variables
		
		protected int _id;
		protected int _aCCOUNTID;
		protected int _eVENTID;
		protected string _lOCATION;
		protected string _tIMESCALE;
		protected decimal _cREDIT;
		protected string _cREATEBY;
		protected string _cREATEDATE;
		protected string _lSTMODBY;
		protected string _lSTMODDATE;

		#endregion

		#region Constructors

		public EVENTACCOUNT() { }

		public EVENTACCOUNT( int aCCOUNTID, int eVENTID, string lOCATION, string tIMESCALE, decimal cREDIT, string cREATEBY, string cREATEDATE, string lSTMODBY, string lSTMODDATE )
		{
			this._aCCOUNTID = aCCOUNTID;
			this._eVENTID = eVENTID;
			this._lOCATION = lOCATION;
			this._tIMESCALE = tIMESCALE;
			this._cREDIT = cREDIT;
			this._cREATEBY = cREATEBY;
			this._cREATEDATE = cREATEDATE;
			this._lSTMODBY = lSTMODBY;
			this._lSTMODDATE = lSTMODDATE;
		}

		#endregion

		#region Public Properties

		public int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		public int ACCOUNTID
		{
			get { return _aCCOUNTID; }
			set { _aCCOUNTID = value; }
		}

		public int EVENTID
		{
			get { return _eVENTID; }
			set { _eVENTID = value; }
		}

		public string LOCATION
		{
			get { return _lOCATION; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for LOCATION", value, value.ToString());
				_lOCATION = value;
			}
		}

		public string TIMESCALE
		{
			get { return _tIMESCALE; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for TIMESCALE", value, value.ToString());
				_tIMESCALE = value;
			}
		}

		public decimal CREDIT
		{
			get { return _cREDIT; }
			set { _cREDIT = value; }
		}

		public string CREATEBY
		{
			get { return _cREATEBY; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for CREATEBY", value, value.ToString());
				_cREATEBY = value;
			}
		}

		public string CREATEDATE
		{
			get { return _cREATEDATE; }
			set
			{
				if ( value != null && value.Length > 20)
					throw new ArgumentOutOfRangeException("Invalid value for CREATEDATE", value, value.ToString());
				_cREATEDATE = value;
			}
		}

		public string LSTMODBY
		{
			get { return _lSTMODBY; }
			set
			{
				if ( value != null && value.Length > 50)
					throw new ArgumentOutOfRangeException("Invalid value for LSTMODBY", value, value.ToString());
				_lSTMODBY = value;
			}
		}

		public string LSTMODDATE
		{
			get { return _lSTMODDATE; }
			set
			{
				if ( value != null && value.Length > 20)
					throw new ArgumentOutOfRangeException("Invalid value for LSTMODDATE", value, value.ToString());
				_lSTMODDATE = value;
			}
		}

		

		#endregion
	}
	#endregion
}